package com.nanjia.boot.stock.productbatch.converter;

import com.nanjia.boot.stock.productbatch.model.entity.ProductBatch;
import com.nanjia.boot.stock.productbatch.model.form.ProductBatchForm;
import com.nanjia.boot.stock.productbatch.model.vo.ProductBatchVO;
import org.mapstruct.Mapper;

/**
 * 产品批次主记录对象转换器
 *
 * @author 周洋
 * @since 2025-08-21 16:30
 */
@Mapper(componentModel = "spring")
public interface ProductBatchConverter{

    ProductBatchForm toForm(ProductBatch entity);

    ProductBatch toEntity(ProductBatchForm formData);
    ProductBatchVO toVO(ProductBatch entity);
}